﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<script type="text/javascript">
    function checkNum() {
        var indexno = document.getElementById('<%=txtOrderbyid.ClientID %>');
        if (indexno != null) {
            if (isNaN(indexno.value)) {
                alert('输入的排序好为非法字符，必须为数字');
                return false;
            }
            else {
                return true;
            }
        }
    }
   
    function showqm(strid) {
        if (strid != null && strid != '') {
            var t1 = document.getElementById("img1");
            if (t1 != null && t1 != '') {
                t1.src = "../ZSManage/showfile.aspx?id=" + strid;
            }
        } 
    }
</script>

<table border="0" cellpadding="0" cellspacing="0" class="gridtable">
    <tr>
        <th colspan="5">
            用户信息
        </th>
    </tr>
    <tr>
        <td>
            登录名：<label style="color: Red">*</label>
        </td>
        <td>
            <asp:TextBox ID="txtLoginName" Width="153px" runat="server"></asp:TextBox>
        </td>
        <td>
            用户姓名：<label style="color: Red">*</label>
        </td>
        <td style="border-right-width:0px;">
            <asp:TextBox ID="txtUserName" runat="server" Width="153px"></asp:TextBox>
        </td>
        <td style="border-left-width:0px;">
        </td>
    </tr>
    <tr>
        <td>
            排序号：
        </td>
        <td>
            <asp:TextBox ID="txtOrderbyid" runat="server" Width="153px"></asp:TextBox>
        </td>
        <td>
            手机号：
        </td>
        <td style="border-right-width:0px;">
            <asp:TextBox ID="txtMobile" runat="server" Width="153px"></asp:TextBox>
        </td>
        <td style="border-left-width:0px;">
        </td>
    </tr>
    <tr id="tr0" runat="server" visible="true">
        <td>
            所在单位：<label style="color: Red">*</label>
        </td>
        <td>
            <asp:DropDownList ID="ddlCompany0" runat="server" AutoPostBack="True" Width="153px">
            </asp:DropDownList>
        </td>
        <td>
            所在部门：<label style="color: Red">*</label>
        </td>
        <td style="border-right-width:0px;">
            <asp:DropDownList ID="ddlDepartment0" runat="server" Width="153px">
            </asp:DropDownList>
        </td>
        <td style="border-left-width:0px;">
        </td>
    </tr>
    <tr id="tr1" runat="server" visible="false">
        <td>
            所在单位：<label style="color: Red">*</label>
        </td>
        <td>
            <asp:DropDownList ID="ddlCompany1" runat="server" AutoPostBack="True" Width="153px">
            </asp:DropDownList>
        </td>
        <td>
            所在部门：<label style="color: Red">*</label>
        </td>
        <td style="border-right-width:0px;">
            <asp:DropDownList ID="ddlDepartment1" runat="server" Width="153px">
            </asp:DropDownList>
        </td>
        <td style="border-left-width:0px;">
            <asp:Button ID="btnDel1" runat="server" CssClass="input" Text="删除" />
        </td>
    </tr>
    <tr id="tr2" runat="server" visible="false">
        <td>
            所在单位：
        </td>
        <td>
            <asp:DropDownList ID="ddlCompany2" runat="server" AutoPostBack="True" Width="153px">
            </asp:DropDownList>
        </td>
        <td>
            所在部门：
        </td>
        <td style="border-right-width:0px;">
            <asp:DropDownList ID="ddlDepartment2" runat="server" Width="153px">
            </asp:DropDownList>
        </td>
        <td style="border-left-width:0px;">
            <asp:Button ID="btnDel2" runat="server" CssClass="input" Text="删除" />
        </td>
    </tr>
    <tr id="tr3" runat="server" visible="false">
        <td>
            所在单位：
        </td>
        <td>
            <asp:DropDownList ID="ddlCompany3" runat="server" AutoPostBack="True" Width="153px">
            </asp:DropDownList>
        </td>
        <td>
            所在部门：
        </td>
        <td style="border-right-width:0px;">
            <asp:DropDownList ID="ddlDepartment3" runat="server" Width="153px">
            </asp:DropDownList>
        </td>
        <td style="border-left-width:0px;">
            <asp:Button ID="btnDel3" runat="server" CssClass="input" Text="删除" />
        </td>
    </tr>
    <tr id="tr4" runat="server" visible="false">
        <td>
            所在单位：
        </td>
        <td>
            <asp:DropDownList ID="ddlCompany4" runat="server" AutoPostBack="True" Width="153px">
            </asp:DropDownList>
        </td>
        <td>
            所在部门：
        </td>
        <td style="border-right-width:0px;">
            <asp:DropDownList ID="ddlDepartment4" runat="server" Width="153px">
            </asp:DropDownList>
        </td>
        <td style="border-left-width:0px;">
            <asp:Button ID="btnDel4" runat="server" CssClass="input" Text="删除" />
        </td>
    </tr>
    <tr>
        <td>
            用户密码：
        </td>
        <td>
            <asp:TextBox ID="txtPASSWORD" runat="server" Width="153px"></asp:TextBox>
        </td>
        <td>
            重复密码 :
        </td>
        <td style="border-right-width:0px;">
            <asp:TextBox ID="txtNewPASSWORD" runat="server" Width="153px"></asp:TextBox>
        </td>
        <td style="border-left-width:0px;">
        </td>
    </tr>
    <tr>
        <td>
            签名图片:
        </td>
        <td colspan="3">
            <img id='img1' runat="server" style="width:48px; height:24px;" />
            <asp:FileUpload ID="QMImgFile" runat="server" />
            <asp:Button ID="btnUpload" runat="server" CssClass="input" Text="签名上传" />
        </td>
    </tr>
    <tr>
        <td align="center" colspan="5">
            <asp:Button ID="btnUpdate" CssClass="input" runat="server" OnClientClick="return checkNum();"
                Text="保存" Width="57px" />
            &nbsp;&nbsp;&nbsp;<input type="button" id="btnReturn" class="input" value="返回" onclick='window.navigate("userlist.aspx")' />
            &nbsp;&nbsp;&nbsp;<asp:Button ID="btnAddDepSel" runat="server" CssClass="input" Text="新增部门" />
        </td>
    </tr>
    <tr>
        <td colspan="5">
            <asp:Label ID="labRole" runat="server" ForeColor="#FF8080"></asp:Label>
        </td>
    </tr>
</table>
